package com.aiti.lulian.workflow;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class RejectRule {
    @JsonProperty("type")
    private String type;
    @JsonProperty("nodeId")
    private String nodeId;
    @JsonProperty("condition")
    private String condition;
    @JsonProperty("terminateProcess")
    private Boolean terminateProcess;

    public RejectRule() {}

    public RejectRule(String type, String nodeId) {
        this.type = type;
        this.nodeId = nodeId;
    }

    public Boolean getTerminateProcess() { return terminateProcess; }
    public void setTerminateProcess(Boolean terminateProcess) { this.terminateProcess = terminateProcess; }

    public String getType() { return type; }
    public void setType(String type) { this.type = type; }

    public String getNodeId() { return nodeId; }
    public void setNodeId(String nodeId) { this.nodeId = nodeId; }

    public String getCondition() { return condition; }
    public void setCondition(String condition) { this.condition = condition; }


}
